Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(passkey): bump @simplewebauthn/server and @simplewebauthn/browser to v10.0.0 #10996

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

masterjanic
Copy link

☕️ Reasoning

The latest version of SimpleWebAuthn (v10.0.0) was released on April 13th and fixes an issue where the browser webauthn autofill handler was not correctly working due to PublicKeyCredential missing. This version also includes changes to how the credentialID and userID is handled. Further we don't need to encode them to an Uint8Array anymore, because the library now expects base64url strings.

This pull request bumps the version and implements the necessary changes for using the latest version.

🧢 Checklist

I couldn't get the tests running on my machine yet, but I will try to test the changes. Database adapters should not be affected since credentialID and userID is stored as a text field already.

  • Documentation
  • Tests
  • Ready to be merged

🎫 Affected issues

There are no affected issues but we might prevent further issues by already implementing the latest version of SimpleWebAuthn.

📌 Resources

Copy link

vercel bot commented May 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
auth-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 1, 2024 11:54am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
next-auth-docs ⬜️ Ignored (Inspect) Visit Preview Jun 1, 2024 11:54am

Copy link

vercel bot commented May 23, 2024

@masterjanic is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

@ndom91
Copy link
Member

ndom91 commented May 23, 2024

Ooo nice, thanks! I was just looking into upgrading to 10.x the other day!

I'll take a closer look at this later today 🙏

@ndom91
Copy link
Member

ndom91 commented May 23, 2024

We're there no other relevant breaking changes other than the base64/uint8array changes?

There were a good bit of changes in v10, I just expected us to be affected by more haha

Copy link
Member

@ndom91 ndom91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the packages/framework-sveltekit/package.json versions aren't bumped. Can you check that?

@ndom91 ndom91 changed the title Bump @simplewebauthn/server and @simplewebauthn/browser to v10.0.0 fix(passkey): bump @simplewebauthn/server and @simplewebauthn/browser to v10.0.0 May 23, 2024
@masterjanic
Copy link
Author

Got it, I probably missed them. I can also see that some examples have the version listed in the package-lock.yaml as well, but they depend on the latest version of @auth/core

Copy link

socket-security bot commented May 23, 2024

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

@ndom91
Copy link
Member

ndom91 commented May 28, 2024

@masterjanic what do you mean by this exactly?

...I can also see that some examples have the version listed in the package-lock.yaml as well, but they depend on the latest version of @auth/core

Copy link

codecov bot commented Jun 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.03%. Comparing base (f1bf7ae) to head (2014f49).
Report is 2 commits behind head on main.

Current head 2014f49 differs from pull request most recent head b97b35c

Please upload reports for the commit b97b35c to get more accurate results.

Additional details and impacted files
@@             Coverage Diff             @@
##             main   #10996       +/-   ##
===========================================
+ Coverage   40.91%   53.03%   +12.12%     
===========================================
  Files         176      108       -68     
  Lines       27924     3373    -24551     
  Branches     1243      344      -899     
===========================================
- Hits        11424     1789     -9635     
+ Misses      16500     1584    -14916     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ndom91
Copy link
Member

ndom91 commented Jun 1, 2024

@masterjanic looks like some of the tests in packages/core/test/webauthn-utils.test.ts need to be updated for the new datatypes

@kmr600
Copy link

kmr600 commented Jun 26, 2024

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants